/**
 * 
 */
package com.firebird.fb.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author qiuxj 创建于 2009-6-2
 *
 */
public class BaseAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	Log logger = LogFactory.getLog(this.getClass());
	
	/**
	 * 获取request对象
	 * @return
	 */
	protected HttpServletRequest request() {
		return ServletActionContext.getRequest();
	}
	
	/**
	 * 获取respone对象
	 * @return
	 */
	protected HttpServletResponse respone(){
		return ServletActionContext.getResponse();
	}
	
	/**
	 * 获取session对象
	 * @return
	 */
	protected HttpSession session(){
		return request().getSession();
	}
	
}
